'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	let {skip=0}=event;
	//按时间顺序排序，下拉条数限制
	let res = await db.collection("article").limit(5).skip(skip).orderBy("posttime","desc").get();
	return res;
};
